<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableBids extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //bids表是投资表
        Schema::create('bids', function (Blueprint $table) {
            $table->increments('bid'); //主键
            $table->integer('uid'); //用户uid
            $table->integer('pid'); //项目pid
            $table->string('title'); //项目名称
            $table->integer('money'); //投标金额
            $table->integer('pubtime'); //投标时间
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('bids');
    }
}
